#include <QCoreApplication>
#include <cassert>
#include <iostream>

int main(int argc, char *argv[])
{
#if 0
    QCoreApplication a(argc, argv);

    QEventLoop eventLoop;

//    QCoreApplication::postEvent(&eventLoop, new QEvent(QEvent::User));

    // process posted events, QEventLoop::processEvents() should return
    // true
    std::cout << "lala" << std::endl;
    assert(eventLoop.processEvents());
    std::cout << "haha" << std::endl;
    //    assert(aboutToBlockSpy.count() == 0);
    //    assert(awakeSpy.count() == 1);

    // allow any session manager to complete its handshake, so that
    // there are no pending events left. This tests that we are able
    // to process all events from the queue, otherwise it will hang.
    while (eventLoop.processEvents())
        ;

    return 0;
#else
    QCoreApplication a(argc, argv);



    return a.exec();

#endif
}
